import Vue from 'vue';
import router from './router/index';
import './style/app.scss';
import store from './stores';
import App from './App.vue';
import { sync } from 'vuex-router-sync';
import { Toast } from 'vant';

sync(store, router);

let vm = new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');

Reflect.defineProperty(Vue.prototype, '$vant', { value: { Toast } });
Reflect.defineProperty(Vue.prototype, '$vm', { value: vm });
